package com.huangliusong.VO;

import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 * @author huangliusong
 * @since 2019/4/1
 * {@link }
 */
@Data
public class AuditVO {
    @Length(min = 1,max = 5)
    @NotNull(message = "name不能为空")
    @NotEmpty
    private String name;

    @NotNull(message = "age不能为空")
    @NotEmpty
    private String age;
}
